import request from '@/utils/request'

/**
 * 文档信息列表
 * @param {*} data
 */
export function reportDocumentListQueryAPI(reportId, type) {
  return request({
    url: `oaExecutionReportDocument/queryListByReportId/${reportId}/${type}`,
    method: 'post'
  })
}

/**
 * 新增/修改
 * @param {*} data
 */
export function reportDocumentAddOrUpdateAPI(data) {
  return request({
    url: `oaExecutionReportDocument/addOrUpdate`,
    method: 'post',
    data: data,
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    }
  })
}

/**
 * 删除
 * @param {*} data
 */
export function reportDocumentDeleteAPI(id) {
  return request({
    url: `oaExecutionReportDocument/deleteById/${id}`,
    method: 'post'
  })
}
